﻿package mortal.game.view.copy.guildDefenseCopy.panel
{
    import flash.events.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.mvc.core.*;

    public class GuildDefenseIcon extends ActionBaseIcon
    {
        private static var _instance:GuildDefenseIcon;

        public function GuildDefenseIcon()
        {
            super(ResFileConst.GuildDefeseIcon);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.GuildDefenseWinOpen));
            return;
        }// end function

        public static function get instance() : GuildDefenseIcon
        {
            if (!_instance)
            {
                _instance = new GuildDefenseIcon;
            }
            return _instance;
        }// end function

        public static function get isviewShow() : Boolean
        {
            return _instance && !_instance.isHide;
        }// end function

    }
}
